Skip to content

Ux 1341 remove rest for topic listing#2513

Draft
jvorcak wants to merge 4 commits into
masterfrom
UX-1341-remove-REST-for-topic-listing
Draft

Ux 1341 remove rest for topic listing#2513
jvorcak wants to merge 4 commits into
masterfrom
UX-1341-remove-REST-for-topic-listing

Conversation

@jvorcak

@jvorcak jvorcak commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

jvorcak added 2 commits June 17, 2026 12:14
Extend ListTopicsResponse.Topic with cleanup_policy and an aggregated
LogDirSummary (total size, per-broker replica errors, hint) so the topic
list UI can be served entirely from the gRPC endpoint, removing the need
for the REST /topics call. Regenerate protogen and OpenAPI artifacts.
Delete useLegacyListTopicsQuery and its REST-shaped mapper; migrate all
consumers to the native gRPC useListTopicsQuery (ListTopicsResponse_Topic).
Callers needing the full list pass pageSize -1, matching prior behavior.

- useListTopicsQuery now forwards staleTime/refetchOnWindowFocus (narrowed
  to primitives to keep useQuery generic inference intact).
- topic-list pages drop the dead allowedActions permission popover (never
  populated by the old mapper) and switch the name column id to 'name'.
- renderLogDirSummary accepts number | bigint and an optional summary so it
  serves both the REST and gRPC topic shapes without a mapper.
- Update tests to the native gRPC shape.
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJun 17, 2026, 11:29 AM

jvorcak added 2 commits June 17, 2026 12:53
…ic-step test

- buf.yml: buf-action defaults to the latest buf, whose formatter collapses
  single-field messages and flags ~40 already-formatted protos. Pin to 1.65.0
  (the repo's canonical version from taskfiles/proto.yaml) so CI matches
  `task proto:generate`.
- add-topic-step.test.tsx: topics now load via the gRPC ListTopics query over
  the test's router transport, not config.fetch. Register a listTopics handler
  (with a topicNames override) and drop the dead mockFetch-based seeding and the
  `expect(mockFetch).toHaveBeenCalled()` assertions that could never pass.
…apper

Add TestTopicSummariesToProto guarding the gRPC ListTopics response shape:
cleanup policy and the aggregated log dir summary (size, hint, per-broker
replica errors) must survive mapping from console.TopicSummary. There was no
backend coverage for ListTopics, so a regression showed up only as empty
columns in the UI.

@c-julin c-julin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to be a pain but this is a change we dont want to make on the dataplane api :( adding log dirs. Its been a long time ticket which i haven't done yet to split this out, if we can wait until next week i'll try prioritise it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants